<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<h1>获取欧的值<span th:text="${message}"></span></h1>

<table>
    <tr>
        <td>id</td>
        <td>name</td>
        <td>index</td>
    </tr>
    <tr th:each="person,personStat:${list}">
        <td th:text="${person.id}">1</td>
        <td th:text="${person.name}">金三胖</td>
        <td th:text="${personStat.index+1}">金三胖</td>
    </tr>

</table>

<br>

<a href="http://www.itheima.com?keywords=1234">去黑马</a>
<a th:href="@{http://www.itheima.com(keywords=${myparam},cansh2=${myparam},cansh3=${myparam})}">去首页</a>

<div>

    <div th:each="myentry:${mymap}">
        <span th:text="${myentry.key}">no:</span>:
        <span th:text="${myentry.value}">1234</span>
    </div>


</div>
<br>
<span th:text="${#dates.format(date,'yyyy-MM-dd HH:mm:ss')}"></span>
<br>
<div>
    <span th:if="${age<18}">显示值:长大了</span>
    <span>显示值:没账单g</span>
</div>

<br>
<button onclick="login()">请按我</button>
</body>
<!--内连-->
<script th:inline="javascript">
    var age = [[${age}]];
    var login =function () {
        alert(age);
    }
</script>
</html>